    <?php
    /** @var KardexController $this */
    /** @var Kardex $model */
    /** @var AweActiveForm $form */
    $form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
        'type' => 'horizontal',
        'id' => 'kardex-form',
        'enableAjaxValidation' => false,
        'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
        'enableClientValidation' => true,
    ));?>

<div class="widget green ">
    <div class="widget-title ">
        <h4>
            <i class="icon-truck"></i><?php echo Yii::t('AweCrud.app', 'Create') . ' ' . Kardex::label();?>        </h4>
        <span class="tools">
            <a class="icon-chevron-down"></a>
        </span>
    </div>
    <div class="widget-body">
        <p class="note">
        <?php echo Yii::t('AweCrud.app', 'Fields with') ?> <span class="required">*</span>
        <?php echo Yii::t('AweCrud.app', 'are required') ?>.        </p>
    
        
                        <?php echo $form->dropDownListRow($model, 'estado', array('ENTRADA' => 'Entrada','SALIDA' => 'Salida',)) ?>
    
                        <?php echo $form->dropDownListRow($model, 'producto_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Producto::model()->findAll(), 'id', Producto::representingColumn())) ?>
    
                        <?php echo $form->textFieldRow($model, 'fecha') ?>
    
                        <?php echo $form->textFieldRow($model, 'detalle', array('maxlength' => 45)) ?>
    
                        <?php echo $form->textFieldRow($model, 'cantidad', array('maxlength' => 10)) ?>
    
                        <?php echo $form->textFieldRow($model, 'precio_unitario', array('maxlength' => 10)) ?>
                <div class="form-actions">
            <div class="form-actions-float">
                        <?php $this->widget('bootstrap.widgets.TbButton', array(
                            'buttonType'=>'submit',
                            'type'=>'primary',
                            'label'=>$model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
                    )); ?>
            <?php $this->widget('bootstrap.widgets.TbButton', array(
                            //'buttonType'=>'submit',
                            'label'=> Yii::t('AweCrud.app', 'Cancel'),
                            'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
                    )); ?>
                </div>
        </div>
    </div>
</div>
    <?php $this->endWidget(); ?>
